;akae2440 Min_OS
;Author : XingWenpeng
;Date		:	2009-9-12

	AREA Sp_set,CODE ,READONLY
	CODE32
	
	EXPORT user_sp_set
	
user_sp_set
	MOV R10,LR			;save return addr
	
	MOV R1,#0X50		;USER_mode I=0,F=1
	MSR CPSR_c,R1
	MOV SP,R0
	
	MOV R0,#0
	MOV PC,R10
	
	END